package MindMap;

/** @author Lewis Marhin */
public class node
{
    static int nodeCount = 0;
    private String desc;
    private int xLoc;
    private int yLoc;
    private node parent;
    
    /** Constructor for node class
        * @params descString String containing the text that appears in the bubble,
        locXInt x coordinate of bubble, locYInt y coordinate of bubble */
    node(String descString, int locXInt, int locYInt)
    {
        int id = nodeCount;
        nodeCount++;
        desc = descString;
        xLoc = locXInt;
        yLoc = locYInt;
    }
    
    node(String descString, int locXInt, int locYInt, node parentNode)
    {
        int id = nodeCount;
        nodeCount++;
        desc = descString;
        xLoc = locXInt;
        yLoc = locYInt;
        parent = parentNode;
    }
    
    public String getDesc()
    {
        return desc;
    }
    
    public int getXloc()
    {
        return xLoc;
    }
    
    public int getYloc()
    {
        return yLoc;
    }
    
    public node getParent()
    {
        return parent;
    }
}
